<?php

class Crud_Filter_Datetime extends Filter_StringToTime
{
	public function filter($value)
	{
		$value = parent::filter($value);
		if ($value == '') return $value;
		return date('Y-m-d H:i:s', $value);
	}
} 